package com.sacc.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 滚~韬
 * @date 2022/4/2 12:15
 */
@Data
@TableName("box_info")
public class BoxInfo {
    @TableId("box_id")
    private Integer boxId;//蜂箱id
    @TableField("box_addr")
    private String boxAddr;//蜂箱地址
    @TableField("box_weight")
    private Float boxWeight;//蜂箱重量
    @TableField("box_temp")
    private Float boxTemp;//蜂箱温度
    @TableField("box_envir_temp")
    private Float boxEnvirTemp;//蜂箱环境温度
    @TableField("box_humi")
    private Float boxHumi;//箱内湿度
    @TableField("box_envir_humi")
    private Float boxEnvirHumi;//环境湿度
    @TableField("box_content")
    private String boxContent;//蜂箱介绍

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT,value = "create_time")
    private LocalDateTime createTime;
}
